package com.msb.apiDriver.controller;

import com.msb.apiDriver.service.ApiDriverService;
import com.msb.internalcommon.dto.DriverUser;
import com.msb.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: jiudianliu
 * @Date: 2023/7/1 - 07 - 01 - 17:04
 * @Description: com.msb.apiDriver.controller
 * @version: 1.0
 */
@RestController
public class ApiDriverController {

    @Autowired
    private ApiDriverService apiDriverService ;

    @PutMapping("/user")
    public ResponseResult updateUser(@RequestBody DriverUser driverUser){
        return apiDriverService.updateUser(driverUser);
    }

}
